﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Add.aspx.cs" Inherits="SysAdmin_Power_Add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>权限增加</title>
</head>
<body>
    <script type="text/javascript">
        $(function () {
            $('#power_add_combobox').combobox({
                data: iconData,
                formatter: function (v) {
                    return formatString('<span class="{0}" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span>{1}', v.value, v.value);
                }
            });
        });
    </script>
    <div style="text-align: center;">
        <form id="admin_power_addForm" method="post">
            <table class="tableForm" style="width: 100%;">
                <tr>
                    <th style="text-align: right;">上级编号</th>
                    <td style="text-align: left;">
                        <%=parentCode.ToString() %>
                        <input type="hidden" id="parent_code" name="parent_code" value="<%=parentCode.ToString() %>" />
                    </td>
                    <th style="text-align: right;">上级名称</th>
                    <td style="text-align: left;">
                        <%=parentName.ToString() %>
                    </td>
                </tr>
                <tr>
                    <th style="text-align: right;">编号</th>
                    <td style="text-align: left;">
                        <input name="power_key" class="easyui-validatebox" data-options="required:true" style="width: 90%;" />
                    </td>
                    <th style="text-align: right;">权限名称</th>
                    <td style="text-align: left;">
                        <input name="power_name" class="easyui-validatebox" data-options="required:true" style="width: 90%;" />
                    </td>
                </tr>
                <tr>
                    <th style="text-align: right;">菜单图标</th>
                    <td style="text-align: left;">
                        <input id="power_add_combobox" name="iconCls" style="width: 150px;" />
                    </td>
                    <th style="text-align: right;">是否可用</th>
                    <td style="text-align: left;">
                        <input name="is_active" type="checkbox" /></td>
                </tr>
                <tr>
                    <th style="text-align: right;">关联菜单</th>
                    <td colspan="3" style="text-align: left;">
                        <input id="power_add_combotree" name="power_add_combotree" class="easyui-combotree" data-options="url:'Ashx/GetAllMenu.ashx',parentField : 'id',lines : true" style="width: 140px;" /><img src="Images/cut_red.png" onclick="$('#power_add_combotree').combotree('clear');" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
